package com.lemon.core.mybatis.base.service;

import com.lemon.core.base.pojo.BasePage;
import com.lemon.core.base.exception.ServiceException;
import com.lemon.core.mybatis.mapper.SuperMapper;
import com.lemon.core.base.result.PageInfo;
import com.lemon.core.base.result.ResultCode;

/**
 * 自定义分页查询基础服务实现类
 *
 * @author pan
 * @since 2018-03-06
 */
public class SuperPageServiceImpl<M extends SuperMapper<T>, T, P extends BasePage> extends SuperServiceImpl<M, T> implements SuperPageService<T, P> {

    /**
     * 分页查询需由子类实现
     *
     * @param page 查询条件
     * @return
     */
    @Override
    public PageInfo<T> queryPage(P page) {
        throw new ServiceException(ResultCode.INTERFACE_NOT_EXIST);
    }

}
